package cn.wolfcode.trip.base.service.impl;

import cn.wolfcode.trip.base.domain.LottoHistory;
import cn.wolfcode.trip.base.mapper.LottoHistoryMapper;
import cn.wolfcode.trip.base.service.ILottoHistoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;
import java.util.List;

@Service
public class LottoHistoryServiceImpl implements ILottoHistoryService {

    @Autowired
    private LottoHistoryMapper lottoHistoryMapper;
    /*@Override
    public List<LottoHistory> queryByUserId(Long userId) {
        return lottoHistoryMapper.selectByUserId(userId);
    }*/

    @Override
    public void save(LottoHistory lottoHistory) {
        lottoHistoryMapper.insert(lottoHistory);
    }

    @Override
    public List<LottoHistory> queryLottoHistory(Long userId) {
        return lottoHistoryMapper.selectByUserId(userId);
    }


}
